<template>
  <div>
    <p>{{ agentId }}</p>
    <el-input
      v-model="value"
      @input="input"
    ></el-input>
  </div>
</template>

<script>
export default {
  name: 'SelectTree',
  props: {
    agentId: {
      type: Number,
      default: null
    }
  },
  data() {
    return {
      value: ''
    }
  },
  created() {
    console.log('机构是', this.agentId)
  },
  methods: {
    input() {
      this.$emit('update:agentId', +this.value)
    }
  }
}
</script>

<style>

</style>
